<block name="appendheader">
	<!-- Validform_v5.3.2验证框架 -->
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Validform/css/Validform_v5.3.2.css"/>
	<script type="text/javascript" src="__PUBLIC__/Validform/js/Validform_v5.3.2_min.js"></script> 
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/Madmin/vendors/multi-select/css/multi-select-madmin.css">

	<script type="text/javascript">
	
		$(function() {
			var editor;
			var myform=$("#info_module").Validform({
				tiptype:3,
				label:".label",
				showAllError:true,
				postonce:true,//开启二次提交防御
				ajaxPost:false,
				beforeSubmit:function(curform) {
					//在验证成功后，表单提交前执行的函数，curform参数是当前表单对象。
					lockScreen();
				},
				callback:function(data){
					$.Hidemsg();
				}
			});
			myform.addRule([{
				ele:"#hours",
				datatype:"n",
				nullmsg:"请输入学时"
			},
			{
				ele:"#percent",
				datatype:"n",
				nullmsg:"请输入成绩比例"
			}]);
		});
	</script>
</block>


	<div class="row">
		<div class="col-lg-12">
			<div class="panel">
				<div class="panel-body pan">
<!--					<form role="form" class="form-horizontal form-bordered">-->
					<form id="info_module" action="__APP__?g={:GROUP_NAME}&m={:MODULE_NAME}&a=logic_set_save" method="post" class="form-horizontal form-bordered">
						<div class="modal-header">
							<button type="button" data-dismiss="modal" aria-hidden="true" class="close">×</button>
							<h4 id="modal-responsive-label" class="modal-title">逻辑设置</h4>
						</div> 
						<div class="modal-header" style="padding:8px;">
							<h5 id="modal-responsive-label" class="modal-title">{$data.code} &nbsp;&nbsp;&nbsp; {$data.question}</h5>
						</div> 
						<div class="form-body">
							<div class="form-group">
								<div class="col-md-3 fl" style="text-align:right;">
								
									<select name="item" id="pre-selected-options" style="height:350px; width:200px;" multiple="multiple">
									<volist name="item_list" id="vo">
										<option name="item" value="{$vo.id}">{$vo.intro}</option>
									</volist>
									</select>
								
								</div>
								<div class="col-md-9 fl">
									<select name="question[]" style="height:350px; width:630px;" multiple="multiple">
										<volist name="formdata.item_list" id="vo" key="k">
											<if condition="$vo.item_type eq 'select'">
												<option name="question" value="{$vo.item_data.id}" >第{$k}题:[选择题][{$vo.item_data.code}]{$vo.item_name}</option>
											</if>										
											<if condition="$vo.item_type eq 'blank'">
												<option name="question" value="{$vo.item_data.id}" >第{$k}题:[填空题][{$vo.item_data.code}]{$vo.item_name}</option>
											</if>										
											<if condition="$vo.item_type eq 'affix'">
												<option name="question" value="{$vo.item_data.id}" >第{$k}题:[附件题][{$vo.item_data.code}]{$vo.item_name}</option>
											</if>
										</volist>
									</select>
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<input type="hidden" name="id" value="{$data.questionid}" />
							<input type="hidden" name="formid" value="{$Think.request.formid}" />
							<input type="hidden" name="model" value="edit" />
							<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>&nbsp;
							<button type="submit" class="btn btn-success">提交</button>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
			
</form>